package com.yigo.cuc.api.customer;

import com.yigo.cuc.api.customer.command.CustomerRegisterCmd;
import com.yigo.cuc.api.customer.command.UpdateNickNameCmd;
import com.yigo.cuc.api.customer.resp.CustomerRegisterResp;
import com.yigo.framework.http.Q;
import com.yigo.framework.http.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @author chenzl
 */
public interface CustomerFeign {
    /**
     * 注册
     * @param q
     * @return
     */
    @PostMapping("cus/customer/register")
    R<CustomerRegisterResp> register(@RequestBody @Valid Q<CustomerRegisterCmd> q);

    /**
     * 更新昵称
     * @param q
     * @return
     */
    @PostMapping("cus/customer/updateNickName")
    R<String> updateNickName(@RequestBody @Valid Q<UpdateNickNameCmd> q);
}
